package com.juyu.miliao.scheduler.dao.mysql;

import com.juyu.miliao.scheduler.domin.QuestionBillInfo;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * 偷听问题账单信息
 *
 * @author xuanqicheng
 * @create 2018-20-4:33 PM
 */
@Repository
public class QuestionBillInfoDao {

    @Autowired
    private SqlSession sqlSession;



    public QuestionBillInfo selectQuestionBillById(Long questionId) {
        return sqlSession.selectOne("selectQuestionBillById",questionId);
    }

    public void updateInfo(String sqlKey,QuestionBillInfo questionBillInfo) {
        sqlSession.update(sqlKey,questionBillInfo);
    }

}
